<!DOCTYPE html>
<html lang="en">
<head>
    <title>函数配置</title>
    <meta charset="UTF-8" />
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>

    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="../metronic/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="../metronic/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- END GLOBAL MANDATORY STYLES -->

    <!-- BEGIN PAGE LEVEL STYLES -->
    <link rel="stylesheet" type="text/css" href="../metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css" />
    <!-- END PAGE LEVEL STYLES -->

    <!-- BEGIN THEME STYLES -->
    <link href="../metronic/assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css" />
    <link href="../metronic/assets/global/plugins/codemirror/lib/codemirror.css" rel="stylesheet" type="text/css" />
    <link href="../metronic/assets/global/plugins/codemirror/theme/neat.css" rel="stylesheet" type="text/css" />
    <!-- END THEME STYLES -->
    <style type="text/css">
        .form-group{
            margin-bottom:5px;
        }
        .table-toolbar{
            margin-bottom:0px;
        }
        .dataTables_empty{
            text-align: center;
        }
        .row-details{
            cursor: pointer;
        }
        .CodeMirror {
            border: 1px solid rgb(231, 236, 241);
            font-size: 15px
        }
        .form-control{
            border-radius: 4px !important;
        }
    </style>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content " style="width: 98%; background: #0f0; background-color: transparent;">
    <div class="row" style="margin-top:16px;">
        <!--Begin Right Content-->
        <div class="col-md-12">
            <div class="portlet box blue-steel">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-globe"></i>函数配置
                    </div>
                    <div class="actions">
                        <a id="btnAdd" href="javascript:;" class="btn btn-default btn-sm">
                            <i class="fa fa-plus"></i> 新增
                        </a>
                        <a id="btnRef" href="javascript:;" class="btn btn-default btn-sm">
                            <i class="fa fa-refresh"></i> 刷新
                        </a>
                    </div>
                </div>
                <!--<div class="portlet-body" style="height:530px;">-->
                <div class="portlet-body">
                    <div class="table-toolbar">
                        <div class="row">
                            <div class="col-md-11">
                                <form id="queryForm">
                                    <div class="col-md-5 form-group">
                                        <label class="control-label">项目工程：</label>
                                        <select name="pcode" class="form-control input-inline input-medium" placeholder="请选择项目工程">
                                        </select>
                                    </div>
                                    <div class="col-md-5">
                                        <label class="control-label">搜索：</label>
                                        <input id="seachTxt" name="seachTxt" type="text" class="form-control input-inline input-medium" placeholder="请输入关键字" />
                                    </div>
                                </form>
                            </div>
                            <div class="col-md-1">
                                <div class="btn-group" style="float: right;margin-right: 10px;">
                                    <button id="btn_Search" class="btn blue-steel">
                                        查询 <i class="fa fa-search"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table class="table table-striped table-bordered table-hover" id="data-list" cellspacing="0" width="100%" style="border-top:solid 3px #F3565D; user-select: none;">
                    </table>
                </div>
            </div>
        </div>
        <!--Begin End Content-->
    </div>

    <!-- 函数配置 模态框 -->
    <div id="serviceFuncOper" class="modal fade" tabindex="-1" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close btn-close" aria-hidden="true"></button>
                    <h4 class="modal-title">函数配置维护</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="postForm" role="form">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">项目工程：</label>
                            <div class="col-sm-8">
                                <select name="pcode" id="postPcode" class="form-control" placeholder="请选择项目工程">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">功能名称：</label>
                            <div class="col-sm-8">
                                <input type="text" name="functitle" id="funcTitle" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">函数配置：</label>
                            <div class="col-sm-8">
                                <textarea id="funcCode"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" name="remark" rows="4" style="resize: none;"></textarea>
                            </div>
                        </div>
                        <input type="hidden" name="guid" id="guid" />
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn default btn-close">关闭</button>
                    <button id="btnSave" type="button" class="btn blue-steel">保存</button>
                    <button id="btnRun" type="button" class="btn btn-success">
                        <i class="fa fa-play" aria-hidden="true"></i> 运行函数配置
                    </button>
                </div>
            </div>
        </div>
    </div>


    <!-- 试运行函数配置 模态框 -->
    <div id="testRunFunc" class="modal fade" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">函数配置试运行</h4>
                </div>
                <div class="modal-body" id="runContent">
                </div>
                <div class="modal-footer">
                    <button id="btnRunTest" type="button" class="btn btn-success">
                        <i class="fa fa-play" aria-hidden="true"></i> 运行
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script src="../metronic/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/datatables/media/js/jquery.dataTables.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js" type="text/javascript"></script>


    <script src="../metronic/assets/global/plugins/codemirror/lib/codemirror.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/codemirror/mode/javascript/javascript.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/codemirror/addon/selection/active-line.js" type="text/javascript"></script>
    <script src="../metronic/assets/global/plugins/codemirror/addon/edit/matchbrackets.js" type="text/javascript"></script>
    <!-- END CORE PLUGINS -->
    <script src="../js/serviceConfigration/serviceFunc.js" type="text/javascript"></script>
</body>
</html>